package structure.appearance;

/**
 * 伤害门面实现
 */
public class HurtFacadeImpl implements HurtFacade {

        private AttackService attackService = new AttackService();
        private DefenseService defenseService = new DefenseService();

        /**
         * 计算伤害
         */
        @Override
        public Double hurtNum() {
            // 攻击 - 防御
            return attackService.attackNum() - defenseService.defenseNum();
        }

}
